Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load units embedded into MUL file #6163

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

pavelbraginskiy
Copy link
Collaborator

This PR allows for unit files to be embedded in a MUL file:
image

The construction_data field contains a base64'd and gzipped version of this unit's mtf (or blk) file.

If such a MUL file (test.zip) is loaded in MM or MML with this PR, the file will load successfully, even if you don't have the contained custom marauder available.

THIS PR DOES NOT PROVIDE A WAY TO CONSTRUCT SUCH A MUL FILE, IT ONLY ENABLES THEM TO BE LOADED.

This PR provides the code necessary to create a MUL file with custom units embedded, but there is no way to invoke this code from the GUI.

Support for creating these MUL files will come in future PRs for MM and MML.

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.18%. Comparing base (d165031) to head (bda58e1).
Report is 16 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6163      +/-   ##
============================================
- Coverage     29.18%   29.18%   -0.01%     
+ Complexity    13974    13973       -1     
============================================
  Files          2623     2623              
  Lines        266441   266476      +35     
  Branches      47594    47600       +6     
============================================
- Hits          77774    77773       -1     
- Misses       184765   184800      +35     
- Partials       3902     3903       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@SJuliez SJuliez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

@SJuliez SJuliez merged commit a0d2147 into MegaMek:master Nov 2, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants